#define _GNU_SOURCE
#include "app_pool.h"
#include "unistd.h"
#include "stdio.h"


int sayHelloTask(void *arg)
{
    sleep(1);
    printf("hello world: %d\n",gettid());
    return 0;
}



int main(int argc, char const *argv[])
{
    
    app_pool_init();

    for (size_t i = 0; i < 10; i++)
    {
        app_pool_submitTask(sayHelloTask , NULL);
    }
    
    while(1)
    {
        sleep(1);

    }
    return 0;
}
